package com.dz.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


public class guanli implements Serializable {
    private Integer id;
    private String name;
    private String aname;
    private String apsw;
    private String phone;
    private String email;
    private String juese;
    private String jiarushijian;

    public guanli() {
    }

    public guanli(Integer id, String name, String aname, String apsw, String phone, String email, String juese, String jiarushijian) {
        this.id = id;
        this.name = name;
        this.aname = aname;
        this.apsw = apsw;
        this.phone = phone;
        this.email = email;
        this.juese = juese;
        this.jiarushijian = jiarushijian;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getApsw() {
        return apsw;
    }

    public void setApsw(String apsw) {
        this.apsw = apsw;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getJuese() {
        return juese;
    }

    public void setJuese(String juese) {
        this.juese = juese;
    }

    public String getJiarushijian() {
        return jiarushijian;
    }

    public void setJiarushijian(String jiarushijian) {
        this.jiarushijian = jiarushijian;
    }

    @Override
    public boolean equals(Object obj) {
        guanli g1=(guanli)obj;
        if(g1.getAname().equals(this.aname)){
            return true;
        }else {
            return false;
        }

    }
}
